Intrinsic And Extrinsic Motivations Of Social Dilemmas In Multi-Agent Systems